#include<stdio.h>
void convert(int n)
{
	int i;
	i=n/10;
	if(i!=0)
	  convert(i);
	putchar(n%10+'0');//将数字转化为字符是+'0'；将字符转化为数字是-'0'
}



//StudybarCommentBegin
int  main()
{
	int n;
    
	scanf("%d",&n);
	if (n<0)
	{ 
		putchar('-');
		n=-n;
	}
	convert(n);
    

}
//StudybarCommentEnd
